package jp.oesf.rss;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class LexusSQLiteOpenHelper extends SQLiteOpenHelper {
	public LexusSQLiteOpenHelper(Context context) {
		// データベースの作成
		super(context, "LEXUS_DATABASE", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// CREATE TABLE文の実行
		db
				.execSQL("CREATE TABLE LEXUS_TABLE(_id INTEGER PRIMARY KEY AUTOINCREMENT"
						+ ", title TEXT not null"
						+ ", link TEXT not null"
						+ ", description TEXT not null"
						+ ", pubdate TEXT not null"
						+ ", guid TEXT not null"
						+ ", category TEXT not null" + ");");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// 処理なし
	}
}